<?php
/**
 * @author Nguyễn Sơn Tùng <sontung.x305@gmail.com> <YM :terminator_nst>
 * @version 1.0
 * @copyright fteam.vn
 * Date: 24/04/2012
 * Time: 16:56
 */
$browser = Yii::app()->browser;
/*
    Where the scripts registered using registerCoreScript or registerPackage will be inserted in the page
    CClientScript::POS_HEAD : the script is inserted in the head section right before the title element.
    CClientScript::POS_BEGIN : the script is inserted at the beginning of the body section.
    CClientScript::POS_END : the script is inserted at the end of the body section.
*/
cs()->coreScriptPosition = CClientScript::POS_END;
cs()->scriptMap=array();
$assets = 'backend.themes.'.Yii::app()->theme->name.'.assets';
if(YII_DEBUG)
    $baseUrl=Yii::app()->assetManager->publish(Yii::getPathOfAlias($assets), false, -1, true);
else
    $baseUrl=Yii::app()->assetManager->publish(Yii::getPathOfAlias($assets), false, -1, false);
cs()->registerMetaTag('text/html; charset=utf-8',null,'Content-Type');
cs()->registerCssFile($baseUrl.'/css/icons.css');
cs()->registerCssFile($baseUrl.'/plugins/uniform/uniform.default.css');
cs()->registerCssFile($baseUrl.'/css/main.css');
cs()->registerCssFile($baseUrl.'/css/custom.css');
cs()->registerCoreScript('jquery');
cs()->registerScriptFile($baseUrl.'/plugins/touch-punch/jquery.ui.touch-punch.min.js',CClientScript::POS_END);
cs()->registerScriptFile($baseUrl.'/plugins/ios-fix/ios-orientationchange-fix.js',CClientScript::POS_END);
cs()->registerScriptFile($baseUrl.'/plugins/uniform/jquery.uniform.min.js',CClientScript::POS_END);
if($browser->getBrowser() == Browser::BROWSER_IE && $browser->getVersion() < 9) {
    cs()->registerCssFile($baseUrl.'/css/ie.css');
    cs()->registerScriptFile($baseUrl.'/js/html5.js',CClientScript::POS_HEAD);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    <meta name="author" content="fteam.vn" />
    <meta name="application-name" content="FCMS 1.0" />
    <!-- Mobile Specific Metas -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <!--fav and touch icons -->
    <link rel="shortcut icon" href="<?php echo $baseUrl; ?>/images/favicon.ico" />
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo $baseUrl; ?>/images/apple-touch-icon-144-precomposed.png" />
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo $baseUrl; ?>/images/apple-touch-icon-114-precomposed.png" />
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo $baseUrl; ?>/images/apple-touch-icon-72-precomposed.png" />
    <link rel="apple-touch-icon-precomposed" href="<?php echo $baseUrl; ?>/images/apple-touch-icon-57-precomposed.png" />
</head>

<body class="loginPage">

<div class="container-fluid">

    <div id="header">

        <div class="row-fluid">

            <div class="navbar">
                <div class="navbar-inner">
                    <div class="container">
                        <a class="brand" href="dashboard.html"><?php echo t('FCMS.<span class="slogan">Admin Control Panel</span>'); ?></a>
                    </div>
                </div><!-- /navbar-inner -->
            </div><!-- /navbar -->


        </div><!-- End .row-fluid -->

    </div><!-- End #header -->

</div><!-- End .container-fluid -->

<div class="container-fluid">

    <div class="loginContainer">
        <?php echo $content; ?>
    </div>

</div><!-- End .container-fluid -->

</body>
</html>
